<?php
/*
* @Created by Phpstorm
* @User: Zhangxinlei
* @Date: 
* @Time:
*/

namespace app\admin\controller\admin;
use app\admin\controller\Base;
use think\facade\Cache;
use think\facade\Request;
use think\facade\Db;
use app\common\model\AdminPassport as M;
use app\common\service\AdminPassport as S;
class Passport extends Base
{
    public function index()
    {
        if (Request::isAjax()){
            return $this->getJson(M::getList());
        }
        return $this->fetch();
    }
    public function details($id){
        return $this->fetch('',['model' => M::find($id)]);
    }
}